home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / ncurses-5.3 / ncurses / unctrl.c < prev   
Encoding:
C/C++ Source or Header  |  2002-10-27  |  2.6 KB  |  46 lines

  1. /* generated by MKunctrl.awk */
  2.  
  3. #include <curses.priv.h>
  4.  
  5. #undef unctrl
  6.  
  7. NCURSES_EXPORT(NCURSES_CONST char *) unctrl (register chtype ch)
  8. {
  9. static const char* const table[] = {
  10.     "^\100", "^\101", "^\102", "^\103", "^\104", "^\105", "^\106", "^\107",
  11.     "^\110", "^\111", "^\112", "^\113", "^\114", "^\115", "^\116", "^\117",
  12.     "^\120", "^\121", "^\122", "^\123", "^\124", "^\125", "^\126", "^\127",
  13.     "^\130", "^\131", "^\132", "^\133", "^\134", "^\135", "^\136", "^\137",
  14.     "\040",  "\041",  "\042",  "\043",  "\044",  "\045",  "\046",  "\047", 
  15.     "\050",  "\051",  "\052",  "\053",  "\054",  "\055",  "\056",  "\057", 
  16.     "\060",  "\061",  "\062",  "\063",  "\064",  "\065",  "\066",  "\067", 
  17.     "\070",  "\071",  "\072",  "\073",  "\074",  "\075",  "\076",  "\077", 
  18.     "\100",  "\101",  "\102",  "\103",  "\104",  "\105",  "\106",  "\107", 
  19.     "\110",  "\111",  "\112",  "\113",  "\114",  "\115",  "\116",  "\117", 
  20.     "\120",  "\121",  "\122",  "\123",  "\124",  "\125",  "\126",  "\127", 
  21.     "\130",  "\131",  "\132",  "\133",  "\134",  "\135",  "\136",  "\137", 
  22.     "\140",  "\141",  "\142",  "\143",  "\144",  "\145",  "\146",  "\147", 
  23.     "\150",  "\151",  "\152",  "\153",  "\154",  "\155",  "\156",  "\157", 
  24.     "\160",  "\161",  "\162",  "\163",  "\164",  "\165",  "\166",  "\167", 
  25.     "\170",  "\171",  "\172",  "\173",  "\174",  "\175",  "\176",  "^?",
  26.     "~\100", "~\101", "~\102", "~\103", "~\104", "~\105", "~\106", "~\107",
  27.     "~\110", "~\111", "~\112", "~\113", "~\114", "~\115", "~\116", "~\117",
  28.     "~\120", "~\121", "~\122", "~\123", "~\124", "~\125", "~\126", "~\127",
  29.     "~\130", "~\131", "~\132", "~\133", "~\134", "~\135", "~\136", "~\137",
  30.     "\240",  "\241",  "\242",  "\243",  "\244",  "\245",  "\246",  "\247", 
  31.     "\250",  "\251",  "\252",  "\253",  "\254",  "\255",  "\256",  "\257", 
  32.     "\260",  "\261",  "\262",  "\263",  "\264",  "\265",  "\266",  "\267", 
  33.     "\270",  "\271",  "\272",  "\273",  "\274",  "\275",  "\276",  "\277", 
  34.     "\300",  "\301",  "\302",  "\303",  "\304",  "\305",  "\306",  "\307", 
  35.     "\310",  "\311",  "\312",  "\313",  "\314",  "\315",  "\316",  "\317", 
  36.     "\320",  "\321",  "\322",  "\323",  "\324",  "\325",  "\326",  "\327", 
  37.     "\330",  "\331",  "\332",  "\333",  "\334",  "\335",  "\336",  "\337", 
  38.     "\340",  "\341",  "\342",  "\343",  "\344",  "\345",  "\346",  "\347", 
  39.     "\350",  "\351",  "\352",  "\353",  "\354",  "\355",  "\356",  "\357", 
  40.     "\360",  "\361",  "\362",  "\363",  "\364",  "\365",  "\366",  "\367", 
  41.     "\370",  "\371",  "\372",  "\373",  "\374",  "\375",  "\376",  "\377"
  42. };
  43.  
  44.     return (NCURSES_CONST char *)table[ChCharOf(ch)];
  45. }
  46.